﻿@using Entidades.Sistema.Produccion
@using Entidades.Sistema.Base
@using System.Collections.ObjectModel;

@model DiagramacionProduccion

<div style="float: left">
    
        @Html.DevExpress().PageControl( settings => {
            settings.Name = "pageControl";
            settings.EnableClientSideAPI = true;
            settings.ActiveTabIndex = 0;
            settings.Width = 800;     
                   
            settings.TabPages.Add(tabpage =>
            {
                tabpage.Name = "TabInicio";
                tabpage.Text = "Incio";
                tabpage.Enabled = ViewBag.TabInicio;
                tabpage.SetContent(() =>
                {   
                    //if (ViewData["EditError"] =! null)
                    Html.RenderPartial("InicioPartial", Model);
                    
                });
            });
       
            settings.TabPages.Add(tabpage =>
            {
                tabpage.Name = "TabPedidos";
                tabpage.Text = "Pedidos";
                tabpage.Enabled = ViewBag.TabPedidos;
                tabpage.SetContent(() =>
                {
                    Html.RenderPartial("PedidosPartial", Model);
                });
            });

            settings.TabPages.Add(tabpage =>
            {
                tabpage.Name = "TabConfiguracion";
                tabpage.Text = "Configuracion";
                tabpage.Enabled = ViewBag.TabConfiguracion;
                tabpage.SetContent(() =>
                {
                    Html.RenderPartial("ConfiguracionPartial", Model);
                });
            });

            settings.TabPages.Add(tabpage =>
            {
                tabpage.Name = "TabResultado";
                tabpage.Text = "Resultado";
                tabpage.Enabled = ViewBag.TabResutado;
                tabpage.SetContent(() =>
                {
                    Html.RenderPartial("ResutadoPartial", Model);
                });
            });
        }).GetHtml()
    
</div>

